﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Calculalouca
{
    static class SceneManager
    {
        static public Scene cena = null;
        static public ContentManager content;

        public enum CENA
        {
            CENA_ABERTURA,
            CENA_CALCULADORA,
        }
        public static void Update(GameTime gameTime)
        {
            cena.Update(gameTime);
        }
        public static void Draw(SpriteBatch spriteBatch)
        {
            cena.Draw(spriteBatch);
        }
        static public void TrocarCena(CENA cenaAtual)
        {
            switch (cenaAtual)
            {
                case CENA.CENA_ABERTURA:
                    {
                        SceneManager.cena = new Opening();
                        cenaAtual = CENA.CENA_ABERTURA;
                        break;
                    }
            }
        }
        static public void Setup(ContentManager content)
        {
            SceneManager.content = content;
            SceneManager.cena = new Opening();         
        }
    }
}
